package com.easydisk.admin.feignclient;

import com.easydisk.model.req.AddRootFolderReq;
import com.easydisk.response.ApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "admin-file-modules", url = "http://localhost:9092/file",
        configuration = FeignConfiguration.class)
public interface FileFeignClient {


    /**
     * 创建用户root文件夹
     *
     * @param addRootFolderReq
     * @return
     */
    @PostMapping("/add/folder/root")
    public ApiResponse<String> addRootFolder(@RequestBody AddRootFolderReq addRootFolderReq);

}
